package com.homework.demo1;

/**
 * @author xiyu
 * @version 1.0
 * @date 2025/3/21 17:10
 * @description 员工(工号，姓名，性别，职位，年龄，月薪，部门）
 */
public class Emp {
    private String id;
    private String name;
    private String sex;
    private String position;
    private Integer age;
    private double money;
    private String dept;

    public Emp(String id, String name, String sex, String position, Integer age, double money, String dept) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.position = position;
        this.age = age;
        this.money = money;
        this.dept = dept;
    }

    public Emp() {
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getDept() {
        return dept;
    }

    public void setDept(String dept) {
        this.dept = dept;
    }


    @Override
    public String toString() {
        return "Emp{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", position='" + position + '\'' +
                ", age=" + age +
                ", money=" + money +
                ", dept=" + dept +
                '}';
    }
}
